package com.qf.courtesycard.mqcustomer.esvo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author lx
 * @since 2023-03-10
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(indexName = "ticket_log_info", shards = 1, replicas = 1, createIndex = false)
public class UserforticketLogsVo implements Serializable {


    /**
     * 日志id
     */
    @Id
    @Field(type = FieldType.Integer)
    private Integer id;

    /**
     * userID
     */
    @Field(type = FieldType.Integer)
    private Integer userId;

    /**
     * ticketID
     */
    @Field(type = FieldType.Keyword)
    private String ticketId;

    /**
     * 用户名
     */
    @Field(type = FieldType.Keyword)
    private String name;

    /**
     * 用户电话
     */
    @Field(type = FieldType.Keyword)
    private String phone;

    /**
     * 优惠券详情
     */
    @Field(type = FieldType.Text)
    private String ticketdetailed;


}
